//
//  TWItemCollectionCell.swift
//  EyepetizerImitative
//
//  Created by 田伟 on 2017/3/10.
//  Copyright © 2017年 个人. All rights reserved.
//

import UIKit
import SDWebImage

class TWItemCollectionCell: UITableViewCell {

    /*
     itemCollectionCell
     */
    
    @IBOutlet weak var topBgImageView: UIImageView!

    
    // MARK:- 自定义属性
    var itemCollectionModel : TWItemCollectionModel?{
        didSet {
            guard let itemCollectionModel = itemCollectionModel else {
                return
            }
            let urlString = itemCollectionModel.header?.cover
            guard let urlStr = urlString else {
                return
            }
            // 设置大图控件
            topBgImageView.sd_setImage(with: URL(string: urlStr))
            // 设置scrollView的内容
            
        }
    }
    
    
    
    override func awakeFromNib() {
        super.awakeFromNib()
        
        
        
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
}
